export class LocalzationHelper {

    static getLocalizationCultureName(langNames:string[]){
		let cultureName = abp.localization.currentLanguage.name.toLowerCase();
		let filterResult = langNames.filter(t=> t.toLowerCase() === cultureName);
		if(filterResult.length > 0)
		{
			return filterResult[0];
		}
		else if(cultureName.length > 2)
		{
			cultureName = cultureName.substring(0,2);
			filterResult = langNames.filter(t=> t.toLowerCase() === cultureName);
			if(filterResult.length > 0)
			{
				return filterResult[0];
			}
		}
		return "en";
	}
}
